﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vm ="clr-namespace:UMLTouch.UI.Start.ViewModels"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="UMLTouch.UI.Start.Views.AvailableDiagramsView"
             MinHeight="300" MinWidth="300"
    mc:Ignorable="d"
    >



    <UserControl.Resources>
        <DataTemplate DataType="{x:Type vm:DomainRecognitionViewModel}">
            <Border>
            	<TextBlock><InlineUIContainer>
            			<TextBlock Text="{Binding DisplayName}" />
            		</InlineUIContainer></TextBlock>
            </Border>
        </DataTemplate>
    </UserControl.Resources>


    <Border CornerRadius="0,0,20,0">


		<Grid Width="300" Height="300">
			<Grid.RowDefinitions>
				<RowDefinition Height="*"/>
				<RowDefinition Height="30"/>
				<RowDefinition Height="30" />
			</Grid.RowDefinitions>
			<ListBox
				IsSynchronizedWithCurrentItem="True" 
				ItemsSource="{Binding AvailableDiagrams}" 
      Background="{x:Null}" BorderBrush="{x:Null}" 
      />
			<TextBox Grid.Row="1" Text="{Binding NewDiagramName}" Background="{x:Null}" BorderBrush="{x:Null}"/>
			<Button Grid.Row="2" Command="{Binding RequestValidate}" Content="Create Diagram"/>
		</Grid>



	</Border>



</UserControl>
